package com.gpt.article.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 洗稿任务对象 gpt_gen_article_task
 * 
 * @author zhuzi
 * @date 2023-11-03
 */
public class GptGenArticleTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务Id */
    private Long id;

    /**创建生成id**/
    private Long fileId;

    /** 洗稿成功数 */
    @Excel(name = "洗稿成功数")
    private Integer successNum;

    /** 洗稿失败数 */
    @Excel(name = "洗稿失败数")
    private Integer errorNum;

    /** 洗稿进度 */
    @Excel(name = "洗稿进度")
    private Integer proce;

    /** 洗稿总数 */
    @Excel(name = "洗稿总数")
    private Integer articleNum;

    /** 洗稿的文章id多个;隔开 */
    @Excel(name = "洗稿的文章id多个;隔开")
    private String articleIds;

    /** 状态（0未开始 1进行中 2执行结束 3执行失败） */
    @Excel(name = "状态", readConverterExp = "0=未开始,1=进行中,2=执行结束,3=执行失败")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSuccessNum(Integer successNum) 
    {
        this.successNum = successNum;
    }

    public Integer getSuccessNum() 
    {
        return successNum;
    }
    public void setErrorNum(Integer errorNum) 
    {
        this.errorNum = errorNum;
    }

    public Integer getErrorNum() 
    {
        return errorNum;
    }
    public void setProce(Integer proce) 
    {
        this.proce = proce;
    }

    public Integer getProce() 
    {
        return proce;
    }
    public void setArticleNum(Integer articleNum) 
    {
        this.articleNum = articleNum;
    }

    public Integer getArticleNum() 
    {
        return articleNum;
    }
    public void setArticleIds(String articleIds) 
    {
        this.articleIds = articleIds;
    }

    public String getArticleIds() 
    {
        return articleIds;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("successNum", getSuccessNum())
            .append("errorNum", getErrorNum())
            .append("proce", getProce())
            .append("articleNum", getArticleNum())
            .append("articleIds", getArticleIds())
            .append("status", getStatus())
            .toString();
    }

    public Long getFileId() {
        return fileId;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }
}
